package com.googlecode.flealancemarket.service.commands.impl;
// com.googlecode.flealancemarket.service.commands.impl.GetReceivedMessagesForUserImpl
import com.googlecode.flealancemarket.metamodel.PrivateMessage;
import com.googlecode.flealancemarket.metamodel.User;
import com.googlecode.flealancemarket.service.commands.GetReceivedMessagesForUser;
import com.googlecode.flealancemarket.service.commands.GetSentMessagesForUser;
import com.googlecode.flealancemarket.service.facades.MessagesFacade;
import java.util.List;

public class GetSentMessagesForUserImpl implements GetSentMessagesForUser {

    private User user;
    private int page;
    private MessagesFacade facade;

    public List<PrivateMessage> execute() {
        return facade.getSentMessages(user, page);
    }

    public void setUser(User user) {
        this.user = user;
    }

    public void setPage(int page) {
        this.page = page;
    }

    public User getUser(){
        return user;
    }

    public int getPage(){
        return page;
    }

    public void setFacade(MessagesFacade facade){
        this.facade = facade;
    }
    public MessagesFacade getFacade(){
        return this.facade;
    }

}
